import Vue from 'vue'
import Router from 'vue-router'
import Main from "../page/Main";
import ActionPush from "../components/ActionEditor";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/home",
      component: Main,
      children:[
        {path: '/reportNeed',component: ()=>import("../components/ReportNeed")},
        {path: '/reportFile',component: ()=>import("../components/ReportFile")},
        {path: '/askAndAnswer',component: ()=>import("../components/AskAndAnswer")},
        {path: '/informNotice',component: ()=>import("../components/InformNotice")},
        {path: '/downloadCenter',component: ()=>import("../components/DownloadCenter")},
        {path: '/fileCenter',component: ()=>import("../components/FileCenter")},
        {path: '/home', component: ()=>import("../components/MasterHome")},
        {path: '/activity', component: ()=>import("../components/Activity")}
      ]
    },
    {path: '/ActionEditor',name: 'actionEditor', component: ActionPush},
    {path: '/informEditor',name: 'informEditor', component: ()=>import("../components/InformEditor")},
    {path: '/answerEditor',name: 'answerEditor',component: ()=>import("../components/AnswerEditor")},
    {path: '/login', component: ()=>import("../components/Login")}
  ]
})
